﻿@model DissProject.Models.YearWorkPlanApplications

@{
    ViewBag.Title = "Промяна на работен план за година";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>YearWorkPlanApplications</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.PlanYear)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlanYear)
            @Html.ValidationMessageFor(model => model.PlanYear)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FormOfConduct)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FormOfConduct)
            @Html.ValidationMessageFor(model => model.FormOfConduct)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FormOfReport)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FormOfReport)
            @Html.ValidationMessageFor(model => model.FormOfReport)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DueDate)
        </div>
        <div class="editor-field">            
            @Html.TextBoxFor(m => m.DueDate, new { id = "date"} )
            @Html.ValidationMessageFor(model => model.DueDate)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>


@section Scripts {
    <script type="text/javascript">
        $('#date').datepicker({ dateFormat: "mm/yy" });</script> 
}
